﻿@using BestTrader.Cms.ViewModels;
@model ConfirmInCashModel
@{
    ViewData["Title"] = "确认入金";
}
@section head {
    <style>
        form input.layui-input[disabled], .red1 {
            font-weight: bold;
            color: red !important;
        }

        .red2 {
            font-size: 20px;
            color: red;
        }
    </style>
}
    <form class="layui-form layui-form-pane">
        @Html.AntiForgeryToken()
        @if (Model != null)
        {
            <div class="layui-form-item layui-row layui-col-xs12">
                <div class="text-left">
                    <strong>您的订单已经生成！</strong>
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">订单号：</label>
                <div class="layui-input-block">
                    <input type="hidden" id="Id" name="Id" class="Id" value="@(Model.Id)" />
                    <input type="hidden" id="hQRCode" name="hQRCode" class="hQRCode" value="@(Model.QRCode)" />
                    <input type="hidden" id="times" name="times" class="times" value="@(Model.Times)" />
                    <input type="text" id="OrderNo" name="OrderNo" autocomplete="off" class="layui-input OrderNo" value="@(Model.OrderNo)" disabled>
                </div>
            </div>

            @if (Model.CashModel.HasValue)
            {
                // 1.线下； 2. 支付宝； 3.银行卡
                if (Model.CashModel.Value == 2)
                {
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <div class="text-left">
                            <strong>用户充值：</strong>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">充值金额：</label>
                        <div class="layui-input-block">
                            <input type="text" id="RMBMoney" name="RMBMoney" autocomplete="off" class="layui-input RMBMoney" value="@(Model.DisplayRMBMoney)" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <div class="text-left">
                            <strong>线上支付：</strong>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">支付宝：</label>
                        <div class="layui-input-inline">
                            <div align="center">
                                @*<a id="qrcode"></a>*@
                                <img id="QRCodeSrc" src="~/images/alipay/alipay.jpg" width="170" height="240" alt="支付宝支付" />
                            </div>
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            订单还有<strong id="minute_show"><s></s>00分</strong>
                            <strong id="second_show"><s></s>00秒</strong>过期
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <div class="text-left">
                            <strong>注意事项提示：</strong>
                        </div>
                        <div class="layui-input-block red1">
                            要求： 实际支付金额必须与生成的订单金额一致！否则无法充值成功！
                        </div>
                        <div class="layui-input-block red1">
                            支付宝入金将会收取千分之五的手续费！
                        </div>
                    </div>
                }
                else if (Model.CashModel.Value == 1)
                {
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <div class="text-left">
                            <strong>银行账户信息：</strong>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">汇款金额：</label>
                        <div class="layui-input-block">
                            <input type="text" id="RMBMoney" name="RMBMoney" autocomplete="off" class="layui-input RMBMoney" value="@(Model.DisplayRMBMoney)" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">账户名称：</label>
                        <div class="layui-input-block">
                            
                            <input type="text" id="ManagerRealName" name="ManagerRealName" autocomplete="off" class="layui-input ManagerRealName" value="@(Model.ManagerRealName)" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">银行名称： </label>
                        <div class="layui-input-block">
                            @*<input type="text" id="UserBankType" name="UserBankType" autocomplete="off" class="layui-input UserBankType" value="@(Model.UserBankType)" disabled>*@
                            <input type="text" id="ManagerCardType" name="ManagerCardType" required lay-verify="required" value="@(Model.ManagerCardType)" autocomplete="off" class="layui-input ManagerCardType" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">银行卡号：</label>
                        <div class="layui-input-block">
                            
                            <input type="text" id="ManagerCardNo" name="ManagerCardNo" required lay-verify="required" value="@(Model.ManagerCardNo)" autocomplete="off" class="layui-input ManagerCardNo" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">开户地址：</label>
                        <div class="layui-input-block">
                            @*<input type="text" id="UserBankProvince" name="UserBankProvince" autocomplete="off" class="layui-input UserBankProvince" value="@(Model.UserBankProvince)" disabled>*@
                            <input type="text" id="ManagerCardAddress" name="ManagerCardAddress" required lay-verify="required" value="@(Model.ManagerCardAddress)" autocomplete="off" class="layui-input ManagerCardAddress" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <div class="text-left">
                            <strong>银行账户信息：</strong>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">打款姓名：</label>
                        <div class="layui-input-block">
                            <input type="text" id="UserRealName" name="UserRealName" autocomplete="off" lay-verify="required" class="layui-input UserRealName" value="@(Model.UserRealName)">
                        </div>
                    </div>
                    <div id="panelMoney" class="layui-form-item layui-row layui-col-xs12">
                        <label class="layui-form-label">打款卡号：</label>
                        <div class="layui-input-block">
                            <input type="text" id="UserCardNo" name="UserCardNo" autocomplete="off" lay-verify="required" class="layui-input UserCardNo" value="@(Model.UserCardNo)">
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <div class="text-left">
                            <strong>注意事项提示：</strong>
                        </div>
                        <div class="layui-input-block">
                            汇款要求： 汇款时，请务必使用认证时的本人名下银行卡打款,否则资金无法到账.
                        </div>
                        <div class="layui-input-block">
                            汇款提示： 汇款时，请将上方的订单号加入汇款备注中，以便我们快速的帮您处理.
                        </div>
                        <div class="layui-input-block">
                            到帐时间： 收到款项后2小时内会帮您入金,如超过2小时未到账,请联系客服人员.
                        </div>
                        <div class="layui-input-block">
                            夜间入金： 在17时至次日9时入金，到账时间可能会有所延迟.
                        </div>
                        <div class="layui-input-block text-left">
                            <span>如果您已完成汇款,请点击</span>
                        </div>
                    </div>
                    <div class="layui-form-item layui-row layui-col-xs12">
                        <div class="layui-input-block">
                            <button id="btnInCoin" class="layui-btn btnInCoin" lay-submit="" lay-filter="confirmInCoin">完成汇款</button>
                        </div>
                    </div>
                }
            }
        }
    </form>

@section Scripts {
    <script type="text/javascript" src="~/layui/layui.js"></script>
    @if (Model.CashModel.HasValue && Model.CashModel.Value == 2)
    {
        // 1.线下； 2. 支付宝； 3.银行卡
        @*<script type="text/javascript" src="~/lib/qrcode/qrcode.js"></script>*@
        <script type="text/javascript" src="~/js/inoutcash/confirmincoin.yunpay.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
    }
    
    <script type="text/javascript" src="~/js/inoutcash/confirmincoin.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
